package com.mark.spring.annotation.life.cycle.init.disp;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: Mark
 * @CreateDate: 2019/9/21 18:37
 * @Version: 3.00.001
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Configuration
public class CityConfig {

   @Bean(initMethod = "initMethod",destroyMethod = "destroyMethod",name = "city")
    public City city(){
        return new City();
    }

}
